package com.gwq.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.gwq.base.AutoEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import java.util.Objects;

@Data
@TableName("cm_equation_record") //做题记录
@AllArgsConstructor
@NoArgsConstructor
@Validated
public class EquationRecord extends AutoEntity<EquationRecord> {

    @ApiModelProperty("左数字")
    private Integer leftOperand;

    @ApiModelProperty("右数字")
    private Integer rightOperand;

    @ApiModelProperty("符号")
    private String operator;

    @ApiModelProperty("结果")
    private Integer sum;

    @ApiModelProperty("对错(0=错,1=对)")
    private Integer rightOrWrong;

    @ApiModelProperty("题集id")
    private String exercisesId;

    @ApiModelProperty("正确答案")
    private Integer trueSum;

}
